home *** CD-ROM | disk | FTP | other *** search
/ Enter 2002 August / EnterCD 8_2002.iso / Internet / Adobe GoLive 6.0 / data1.cab / PF_AppDir_Settings_ServerPages / jsp / WEB-INF / web.xml < prev   
Encoding:
Extensible Markup Language  |  2002-03-28  |  3.2 KB  |  101 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2.  
  3. <!DOCTYPE web-app
  4.     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  5.     "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
  6.  
  7. <web-app>
  8.  
  9.     <context-param>
  10.     <param-name>com.adobe.gl.admin_email</param-name>
  11.     <param-value>your_name_here</param-value>
  12.     </context-param>
  13.     <context-param>
  14.     <param-name>com.adobe.gl.runtimeDebug</param-name>
  15.     <param-value>false</param-value>
  16.     </context-param>
  17.  
  18.     <servlet>
  19.     <servlet-name>
  20.         dsr
  21.     </servlet-name>
  22.     <description>
  23.         When the container unloads the web application,
  24.         this servlet makes sure to recycle any open
  25.         database connections.
  26.     </description>
  27.     <servlet-class>
  28.         com.adobe.gl.servlets6.dsr.DataSourceRegister
  29.     </servlet-class>
  30.     <load-on-startup>2</load-on-startup>
  31.     </servlet>
  32.  
  33.     <taglib>
  34.         <taglib-uri>
  35.        /gl-taglib
  36.         </taglib-uri>
  37.         <taglib-location>
  38.            /WEB-INF/tlds/taglib6.tld
  39.         </taglib-location>
  40.     </taglib>
  41.  
  42.     <taglib>
  43.         <taglib-uri>
  44.        http://java.apache.org/tomcat/examples-taglib
  45.         </taglib-uri>
  46.         <taglib-location>
  47.            /WEB-INF/jsp/example-taglib.tld
  48.         </taglib-location>
  49.     </taglib>
  50.  
  51.     <security-constraint>
  52.       <web-resource-collection>
  53.          <web-resource-name>Protected Area</web-resource-name>
  54.      <!-- Define the context-relative URL(s) to be protected -->
  55.          <url-pattern>/jsp/security/protected/*</url-pattern>
  56.      <!-- If you list http methods, only those methods are protected -->
  57.      <http-method>DELETE</http-method>
  58.          <http-method>GET</http-method>
  59.          <http-method>POST</http-method>
  60.      <http-method>PUT</http-method>
  61.       </web-resource-collection>
  62.       <auth-constraint>
  63.          <!-- Anyone with one of the listed roles may access this area -->
  64.          <role-name>tomcat</role-name>
  65.      <role-name>role1</role-name>
  66.       </auth-constraint>
  67.     </security-constraint>
  68.  
  69.     <security-constraint>
  70.     <web-resource-collection>
  71.         <web-resource-name>datasources</web-resource-name>
  72.         <url-pattern>/config/datasources/*</url-pattern>
  73.     </web-resource-collection>
  74.     <auth-constraint>
  75.         <role-name>NobodyAtAll</role-name>
  76.     </auth-constraint>
  77.     </security-constraint>
  78.  
  79.     <!-- Default login configuration uses BASIC authentication -->
  80.     <login-config>
  81.       <auth-method>BASIC</auth-method>
  82.       <realm-name>Example Basic Authentication Area</realm-name>
  83.     </login-config>
  84.  
  85.     <!-- If you want to experiment with form-based logins, comment
  86.          out the <login-config> element above and replace it with
  87.          this one.  Note that we are currently using a nonstandard
  88.          authentication method, because the code to support form
  89.          based login is incomplete and only lightly tested.  -->
  90.     <!--
  91.     <login-config>
  92.       <auth-method>EXPERIMENTAL_FORM</auth-method>
  93.       <realm-name>Example Form-Based Authentication Area</realm-name>
  94.       <form-login-config>
  95.         <form-login-page>/jsp/security/login/login.jsp</form-login-page>
  96.         <form-error-page>/jsp/security/login/error.jsp</form-error-page>
  97.       </form-login-config>
  98.     </login-config>
  99.     -->
  100. </web-app>
  101.